if (g_type_is_a (type, GTK_TYPE_FILE_CHOOSER_BUTTON) ||
g_type_is_a (type, GTK_TYPE_FILE_CHOOSER_DIALOG) ||
g_type_is_a (type, GTK_TYPE_FILE_CHOOSER_WIDGET) ||
- g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR))
+ g_str_equal (g_type_name (type), "GtkPlacesSidebar"))
return;
klass = g_type_class_ref (type);
if (g_type_is_a (type, GTK_TYPE_SETTINGS))
- instance = g_object_ref (gtk_settings_get_default ());
+ instance = G_OBJECT (g_object_ref (gtk_settings_get_default ()));
else if (g_type_is_a (type, GDK_TYPE_SURFACE))
{
- instance = g_object_ref (gdk_surface_new_popup (gdk_display_get_default (),
- 0,
- &(GdkRectangle) { 0, 0, 100, 100 }));
+ instance = G_OBJECT (g_object_ref (gdk_surface_new_popup (display,
+ &(GdkRectangle) { 0, 0, 100, 100 })));
}
- else if (g_str_equal (g_type_name (type), "GdkX11Cursor"))
+ else if (g_type_is_a (type, GDK_TYPE_CLIPBOARD) ||
+ g_str_equal (g_type_name (type), "GdkX11Cursor"))
instance = g_object_new (type, "display", display, NULL);
else
instance = g_object_new (type, NULL);
if ((pspec->flags & G_PARAM_READABLE) == 0)
continue;
+ if (g_type_is_a (type, GDK_TYPE_CLIPBOARD) &&
+ strcmp (pspec->name, "display") == 0)
+ continue;
+
+ /* These are set in init() */
+ if ((g_type_is_a (type, GDK_TYPE_CLIPBOARD) ||
+ g_type_is_a (type, GDK_TYPE_CONTENT_PROVIDER)) &&
+ strcmp (pspec->name, "formats") == 0)
+ continue;
+
+ if (g_type_is_a (type, GDK_TYPE_CONTENT_PROVIDER) &&
+ strcmp (pspec->name, "storable-formats") == 0)
+ continue;
+
/* This one has a special-purpose default value */
if (g_type_is_a (type, GTK_TYPE_DIALOG) &&
(strcmp (pspec->name, "use-header-bar") == 0))
strcmp (pspec->name, "cell-area-context") == 0))
continue;
+G_GNUC_END_IGNORE_DEPRECATIONS
+
+ /* This is set in init() */
+ if (g_type_is_a (type, GTK_TYPE_FONT_CHOOSER_WIDGET) &&
+ strcmp (pspec->name, "tweak-action") == 0)
+ continue;
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
if (g_type_is_a (type, GTK_TYPE_ICON_VIEW) &&
(strcmp (pspec->name, "cell-area") == 0 ||
strcmp (pspec->name, "cell-area-context") == 0))
strcmp (pspec->name, "buffer") == 0)
continue;
- if (g_type_is_a (type, GTK_TYPE_TOOL_ITEM_GROUP) &&
- strcmp (pspec->name, "label-widget") == 0)
- continue;
-
if (g_type_is_a (type, GTK_TYPE_TREE_VIEW) &&
(strcmp (pspec->name, "hadjustment") == 0 ||
strcmp (pspec->name, "vadjustment") == 0))
continue;
/* show-desktop depends on desktop environment */
- if (g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR) &&
+ if (g_str_equal (g_type_name (type), "GtkPlacesSidebar") &&
strcmp (pspec->name, "show-desktop") == 0)
continue;
strcmp (pspec->name, "adjustment") == 0)
continue;
-
if (g_test_verbose ())
- g_print ("Property %s.%s\n",
- g_type_name (pspec->owner_type),
- pspec->name);
+ {
+ g_print ("Property %s:%s\n",
+ g_type_name (pspec->owner_type),
+ pspec->name);
+ }
+
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
g_object_get_property (instance, pspec->name, &value);
check_property ("Property", pspec, &value);